<?php

namespace App\Model;

class ActionLog extends Model
{
    protected ?string $table = 'action_logs';
    /**
     * The attributes that are mass assignable.
     * @var array
     */
    protected array $fillable = ['id', 'user_id', 'user_name', 'controller', 'action', 'method', 'data', 'url', 'browser', 'os', 'ip', 'created_at', 'updated_at', 'deleted_at'];
    /**
     * The attributes that should be cast to native types.
     * @var array
     */
    protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];

    protected array $hidden= ['data'];
}